﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Caifu.Fx;
using System.Web.SessionState;

namespace user.caifu520.com
{
	/// <summary>
	/// PassCode1 的摘要说明
	/// </summary>
	public class PassCode : IHttpHandler, IRequiresSessionState
	{
		public void ProcessRequest(HttpContext context)
		{
			context.Response.ContentType = "image/jpeg";
			ValidateCodeManager CodeManage = new ValidateCodeManager(context);
			context.Response.BinaryWrite(CodeManage.GenerateCode(4));
			context.Response.End();
		}

		public bool IsReusable
		{
			get
			{
				return false;
			}
		}
	}
}